<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<script type="text/javascript" src="js/login.js"></script> 
<script type="text/javascript" src="js/jquery/jquery-1.1.3.js"></script>
<script type="text/javascript" src="js/jquery/jquery.cookie.js"></script>
		<script type="text/javascript" src="js/webtoolkit.base64.js"></script>
<script type="text/javascript" >
	$(document).ready(function($) {
		var auth = make_base_auth('iortega', 'hola');
		$.ajax({
			    url : '/projects',
			    method : method,
				data: data,
			    beforeSend : function(req) {
			        req.setRequestHeader('Authorization', auth);
					req.setRequestHeader('User', 'iortega');
				},
				complete : function () {
					$('#salida').innerHTML="OK";
				}
			    
			});
	 });
</script>
<body>
Testing Ajax Call con Jquery.
<div id="salida">BAD</div>
</body>
</html>